<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_try.order_log".
 *
 * @property integer $order_log_id
 * @property integer $admin_uid
 * @property string $start_status
 * @property string $end_status
 * @property string $start_pay_status
 * @property string $end_pay_status
 * @property string $addtime
 * @property integer order_info_id
 * @property integer $signed_time
 */
class OrderLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.order_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
             [['admin_uid','start_status','end_status','start_pay_status','end_pay_status','addtime','order_info_id','signed_time'],'safe'],
             [['admin_uid', 'order_info_id'], 'integer'],
             //[['start_status', 'end_status', 'start_pay_status', 'end_pay_status'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'order_log_id' => '主键id',
            'admin_uid' => '管理员UID',
            'start_status' => '操作前订单状态',
            'end_status' => '操作后订单状态',
            'start_pay_status' => '操作前支付状态',
            'end_pay_status' => '操作后支付状态',
            'addtime' => '操作时间',
            'order_info_id' => '订单id',
            'signed_time' => '订单签收时间',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\OrderLogQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\OrderLogQuery(get_called_class());
    }
}
